#include "MC_include.h"

/*定义有关控制的变量**/

uint16_t stepper_speed = 150;
uint8_t limit_en[3] = {1, 1, 1};
MC_Config_TypeDef MC_Config_param;
MC_Execute_TypeDef MC_Execute_param;
void parameter_init(void)
{
	uint8_t readNum[2] ={0};
	I2C_EE_BufferRead(readNum, 0x10, 2);
	MC_Config_param.X_Max_range = (readNum[1]<<8) | readNum[0];//X轴最大35cm 35*10*10 2000
	I2C_EE_BufferRead(readNum, 0x20, 2);
	MC_Config_param.Y_Max_range = (readNum[1]<<8) | readNum[0];//X轴最大35cm 35*10*10
	I2C_EE_BufferRead(readNum, 0x30, 2);
	MC_Config_param.Z_Max_range = -((readNum[1]<<8) | readNum[0]);//X轴最大35cm 7*10*10
	
	MC_Config_param.mm_pulse = 32;
}

